﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ProductAttributeInput.ascx.cs"
    Inherits="HUGATE.Item.Controls.ERP.Item.ProductAttribute.ProductAttributeInput" %>
<asp:GridView ID="grvAttributeInput" runat="server" AutoGenerateColumns="False" 
    Width="100%" onrowdatabound="grvAttributeInput_RowDataBound" CssClass="Gridview">
    <AlternatingRowStyle CssClass="RowAlt" />
    <Columns>
        <asp:TemplateField HeaderText="Thuộc tính">
            <ItemTemplate>
                <%# Eval("AttributeName") %>
                <asp:HiddenField ID="hdfAttributeType" runat="server" Value='<%# Bind("AttributeType") %>' />
                <asp:HiddenField ID="hdfAttributeID" runat="server" Value='<%# Bind("AttributeID") %>' />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Giá trị">
            <ItemTemplate>
                <asp:TextBox ID="txtValue" runat="server" Width="300px"></asp:TextBox>
                <asp:DropDownList ID="ddlValue" runat="server" Width="300px" Visible="false" DataTextField="ValueName" DataValueField="ValueID">
                </asp:DropDownList>
                <asp:ListBox ID="lsbValue" runat="server" Width="300px" SelectionMode="Multiple" Visible="false" DataTextField="ValueName" DataValueField="ValueID"></asp:ListBox>
            </ItemTemplate>
        </asp:TemplateField>
        <%--<asp:TemplateField>
            <ItemTemplate>
                <asp:LinkButton ID="lbtDelete" runat="server" CommandArgument='<%#Eval("AttributeID")%>'
                    CssClass="DeleteBtn" OnClick="imgDelete_Click" OnClientClick='<%# "return confirm(\"" + string.Format(ResxManager.GetString("DeleteConfirm"), "") + "\");" %>'
                    ToolTip='<%#ResxManager.GetString("Delete")%>'>
                </asp:LinkButton>
            </ItemTemplate>
            <ItemStyle CssClass="Delete" />
        </asp:TemplateField>--%>
    </Columns>
    <HeaderStyle CssClass="Header" />
    <RowStyle CssClass="Row" />
</asp:GridView>
